unsigned char get_key(unsigned char pin) {
		pin = PIND;
		for(i=0; i< 8; i++) {
			if(pin ^ _BV(i)) {
				return i;
			}
		}
}
